cmake_minimum_required(VERSION 2.8)
project(stereo_undistort_test)

set(CMAKE_BUILD_TYPE Release)

set(CMAKE_CXX_FLAGS "-std=c++11 -Wall")
set(CMAKE_CXX_FLAGS_RELEASE "-std=c++11 -O3 -fopenmp -pthread")

#OPENCV
find_package(OpenCV 4 REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

add_executable(stereo_undistort stereo_undistort.cpp)
target_link_libraries(stereo_undistort ${OpenCV_LIBS})


